package com.beiming.libra.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * swagger 注解测试类
 *
 * @author tp Date : 2018/6/2/002 12:03
 */
@Data
// 表示这个对象是做什么的
@ApiModel("swaggerTest参数")
public class SwaggerTest {

  /**
   * name : 参数中文解释 required : 表示参数是否是必填 默认false hidden : 是否隐藏 默认false
   */
  @ApiModelProperty(value = "用户名", required = true, hidden = false)
  private String username;
  @ApiModelProperty(value = "密码", required = true, hidden = true)
  private String password;
  @ApiModelProperty(value = "真实名称", required = true, hidden = false)
  private String realName;
  @ApiModelProperty(value = "电话", required = true, hidden = false)
  private String phone;
  @ApiModelProperty(value = "邮箱", required = true, hidden = false)
  private String email;

}
